import { AxiosResponse } from 'axios';

export default function (
  response: AxiosResponse
): AxiosResponse | Promise<AxiosResponse> {
  if (response.status === 200) {
    return response;
  }

  return Promise.reject(response);
}
